package com.qiang.test08;

public class Demo {
    public static void main(String[] args) {
        Desk desk = new Desk();

        Foodi f = new Foodi(desk);
        Cooker c = new Cooker(desk);
        Thread t1 = new Thread(f);
        Thread t2 = new Thread(c);
        t1.start();
        t2.start();
    }
}
